class Task < ActiveRecord::Base

  hobo_model

  has_many :assignments
  has_many :users, :through => :assignments
  
  belongs_to :projects
  belongs_to :task_kind
  belongs_to :task_status

  # --- Hobo Permissions --- #

  def creatable_by?(creator)
    false
  end

  def updatable_by?(updater, new)
    false
  end

  def deletable_by?(deleter)
    false
  end

  def viewable_by?(viewer, field)
    true
  end

end
